package org.jeecg.modules.lab.items.record.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.lab.items.record.mapper.LabItemsRecordBasicsMapper;
import org.jeecg.modules.lab.items.record.service.ILabItemsRecordBasicsService;
import org.jeecg.modules.lab.items.vo.LabRecordBas;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description: 项目检测记录_基础信息
 * @Author: jeecg-boot
 * @Date: 2023-10-08
 * @Version: V1.0
 */
@Service
public class LabItemsRecordBasicsServiceImpl extends ServiceImpl<LabItemsRecordBasicsMapper, LabRecordBas> implements ILabItemsRecordBasicsService {

    @Autowired
    private LabItemsRecordBasicsMapper labItemsRecordBasicsMapper;


    @Override
    public LabRecordBas getRecordBasOne(String entrustId,String taskItemId, String itemId) {
        List<LabRecordBas> labRecordBasList = labItemsRecordBasicsMapper.getRecordBasOne(entrustId, taskItemId, itemId);
        LabRecordBas bas = new LabRecordBas();
        if (labRecordBasList.size() > 0) {
            bas = labRecordBasList.get(0);
        }
        return bas;
    }
}
